home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
InterCD 2000 September
/
september_2000.iso
/
intercd
/
root
/
^Linux
/
Jooky
/
randnum.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1999-11-01
|
168 b
|
12 lines
#include "includes.h"
int randnum()
{
time_t timey;
timey=time(&timey);
srand((unsigned int)timey);
return 1+(int) (1000.0*rand()/(RAND_MAX+1.0));
}